﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace easyList.Entities
{
    class FileObjectList
    {

        private List<FileObject> list = new List<FileObject>();


        internal void addFile(FileObject currentFile)
        {
            this.list.Add(currentFile);
        }


        public List<FileObject> getFileList()
        {
            return this.list;
        }

        public void addListToFileList(List<FileObject> newList)
        {
            List<FileObject> tmpList = new List<FileObject>();
            foreach (FileObject currFile in this.list){
                tmpList.Add(currFile);
            }
            foreach (FileObject currFile in newList)
            {
                tmpList.Add(currFile);
            }

            this.list = tmpList;
        }

    }
}
